<template>
  <div>
    <el-button type="danger" @click="dialogVisible = true">编辑</el-button>

    <el-dialog title="文件分享" :visible.sync="dialogVisible" width="30%" >
      <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="分享时长" prop="resource">
          <el-radio-group v-model="form.days">
            <el-radio label="3天" value=3></el-radio>
            <el-radio label="7天" value=7></el-radio>
            <el-radio label="30天" value=30></el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="分享人数" prop="resource">
          <el-radio-group v-model="form.nums">
            <el-radio label="3人" value=3></el-radio>
            <el-radio label="5人" value=5></el-radio>
            <el-radio label="10天" value=10></el-radio>
          </el-radio-group>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        dialogVisible: false,
        sharefileid:'',
        form: {
          days:'',
          nums:'',
          yard:''
        }
      };
    }
  };
</script>